package cn.tedu.luban.worker.main.dao;

import cn.tedu.luban.worker.protocol.dos.WorkerDO;
import cn.tedu.luban.worker.protocol.query.WorkerDBPageQuery;
import java.util.List;

public interface WorkerDAO {
    void deleteByUserId(Long userId);

    void insert(WorkerDO workerDO);

    WorkerDO selectByUserId(Long id);

    Long countWorker(WorkerDBPageQuery query);

    List<WorkerDO> selectWorkers(WorkerDBPageQuery query);

    void updateAuditStatus(WorkerDO aDo);

    Integer updateStatus(WorkerDO aDo);

    void updateCertStatus(WorkerDO aDo);
}
